import Vue from 'vue'
import Router from 'vue-router'

import index from '../pages/index'
import compass from '../pages/compass'
import order from '../pages/order'
import mine from '../pages/mine'
import shop from '../pages/shop'

import spdetail from '../pages/spdetail'

Vue.use(Router)

var router= new Router({
	routes: [{
			path: '/index',
			name: 'index',
			component: index
		},
		{
			path: '/compass',
			name: 'compass',
			component: compass
		}, 
		{
			path: '/order',
			name: 'order',
			component: order
		},
		{
			path: '/mine',
			name: 'mine',
			component: mine
		},
		{
			path: '/shop/:id',
			name: 'shop',
			component: shop
		},
		{
			path: '/shop/deti/:id',
			name: 'deti',
			component: spdetail
		},
		
		
	]
})
 
 router.push("/index")
export default router;